<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<head>
<title>home</title>
</head>
<body>
        <p>Hello 会员中心</p>
<p th:inline="text">Hello <span sec:authentication="name"></span></p>
 <p sec:authorize="hasRole('ROLE_ADMIN')">管理员</p>
 <p sec:authorize="hasRole('ROLE_USER')">普通用户</p>
<p><form th:action="@{/logout}" method="post">
            <input type="submit" value="登出"/>
        </form>
</p>
    </body>
</html>